package com.wct.mall.controller;

import com.wct.mall.exception.ParamException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author WEI
 * @date 2020/3/24
 */
@Controller
public class IndexController {

    @GetMapping("/")
    public String index() {
        return "index";
    }

    @GetMapping("/home")
    public ModelAndView home() {
        throw new ParamException("param");
//        return new ModelAndView("home");
    }
}
